﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 公告以及推送消息
    /// </summary>
    [ExLanguageKey("SysWechatTemplate")]
    public partial class SysWechatTemplateExList
    {
        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("SysWechatTemplateID")]
        [Key]
        public int SysWechatTemplateID { get; set; }

        /// <summary>
        /// 店铺ID;此字段为null,则代表公告消息
        /// </summary>
        [ExLanguageKey("SysStoreID")]
        public int? SysStoreID { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        [ExLanguageKey("SysEmployeeID")]
        public int? SysEmployeeID { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        [ExLanguageKey("SysCustomerID")]
        public int? SysCustomerID { get; set; }

        /// <summary>
        /// 系统类型;全部=0,系统后台端=10,微信客户端=20
        /// </summary>
        [ExLanguageKey("EnumRunProject")]
        public EnumRunProject EnumRunProject { get; set; }

        /// <summary>
        /// 公告标题
        /// </summary>
        [ExLanguageKey("Title")]
        public string Title { get; set; }

        /// <summary>
        /// 公告内容
        /// </summary>
        [ExLanguageKey("MsgContent")]
        public string MsgContent { get; set; }

        /// <summary>
        /// 消息内容简写
        /// </summary>
        [ExLanguageKey("ShortContent")]
        public string ShortContent { get; set; }

        /// <summary>
        /// 文档Url
        /// </summary>
        [ExLanguageKey("FileUrl")]
        public string FileUrl { get; set; }

        /// <summary>
        /// 图片1
        /// </summary>
        [ExLanguageKey("ImageUrl1")]
        public string ImageUrl1 { get; set; }

        /// <summary>
        /// 图片2
        /// </summary>
        [ExLanguageKey("ImageUrl2")]
        public string ImageUrl2 { get; set; }

        /// <summary>
        /// 图片3
        /// </summary>
        [ExLanguageKey("ImageUrl3")]
        public string ImageUrl3 { get; set; }

        /// <summary>
        /// 图片4
        /// </summary>
        [ExLanguageKey("ImageUrl4")]
        public string ImageUrl4 { get; set; }

        /// <summary>
        /// 图片5
        /// </summary>
        [ExLanguageKey("ImageUrl5")]
        public string ImageUrl5 { get; set; }

        /// <summary>
        /// 模版消息状态;未推送=0,推送中=5,推送成功=10,推送失败=-1
        /// </summary>
        [ExLanguageKey("EnumMsgState")]
        public EnumMsgState EnumMsgState { get; set; }

        /// <summary>
        /// 跳转链接
        /// </summary>
        [ExLanguageKey("Url")]
        public string Url { get; set; }

        /// <summary>
        /// 微信推送内容
        /// </summary>
        [ExLanguageKey("TemplateSendContent")]
        public string TemplateSendContent { get; set; }

        /// <summary>
        /// 微信推送相关OpenID;可不赋值,bll里去取值
        /// </summary>
        [ExLanguageKey("TemplateSendOpenIDs")]
        public string TemplateSendOpenIDs { get; set; }

        /// <summary>
        /// 微信推送模版ID
        /// </summary>
        [ExLanguageKey("TemplateID")]
        public string TemplateID { get; set; }

        /// <summary>
        /// 推送消息msgid
        /// </summary>
        [ExLanguageKey("msgid")]
        public string msgid { get; set; }

        /// <summary>
        /// 推送消息状态;success/failed:user block等;成功之后写入Record表
        /// </summary>
        [ExLanguageKey("ReturnStatus")]
        public string ReturnStatus { get; set; }

        /// <summary>
        /// 创建员工ID;系统产生的为null
        /// </summary>
        [ExLanguageKey("CreateSysEmployeeID")]
        public int? CreateSysEmployeeID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 来源类型; 未知=0,客户跟踪=10
        /// </summary>
        [ExLanguageKey("EnumWechatTemplateSourceType")]
        public EnumWechatTemplateSourceType EnumWechatTemplateSourceType { get; set; }

        /// <summary>
        /// 来源ID
        /// </summary>
        [ExLanguageKey("EnumWechatTemplateSourceID")]
        public int? EnumWechatTemplateSourceID { get; set; }

        /// <summary>
        /// 店铺;店铺的数据,有Filter的
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysStore")]
        public SysStoreExPart SysStore { get; set; }

        /// <summary>
        /// 员工
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysEmployee")]
        public SysEmployeeExPart SysEmployee { get; set; }

        /// <summary>
        /// 客户信息
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysCustomer")]
        public SysCustomerExPart SysCustomer { get; set; }
    }
}
